let http = require("http");
let server = http.createServer((req,res)=>{
    res.setHerder("content-type","text/html;charset=utf-8");
    let obj = {
        name:'王五',
        age:30
    };
    res.write(JSON.stringify(obj));
    res.end();
});
server.listen(8989);